<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<% String path = request.getContextPath()+"/"; %>
<!DOCTYPE html>
<html class="x-admin-sm">
<head>
    <base href="<%=path%>">
    <meta charset="UTF-8">
    <title>高管简介</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
    <link rel="stylesheet" href="layui/css/font.css">
    <link rel="stylesheet" href="layui/css/xadmin.css">
    <script src="layui/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="layui/js/xadmin.js"></script>
    <!--[if lt IE 9]>
    <script src="https://cdn.staticfile.org/html5shiv/r29/html5.min.js"></script>
    <script src="https://cdn.staticfile.org/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <style>
        .layui-card .layui-card-header {
            font-size: 18px;
            font-weight: bold;
            background-color: #e6e6e6;
        }

        .layui-card.r-form .layui-card-body {
            padding: 0;
        }

        .layui-form-pane .layui-form-label {
            color: #444;
            background-color: #f0f0f0;
        }

        .review-helper {
            position: fixed;
            right: 40px;
            top: 20px;
            box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
        }

        .review-helper .a-select {
            padding: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid #ddd;
        }

        .a-select label {
            width: 60px;
            text-align: left;
            font-size: 15px;
            margin-right: 10px;
        }


        .a-review {}

        .r-item {
            padding: 10px;
            font-size: 16px;
            background-color: #f0f0f0;
            border-bottom: 1px solid #ddd;
        }

        .r-diff {
            padding: 20px 10px;
        }


        .r-action {
            padding: 10px 20px;
        }

        .r-action .layui-form-label {
            padding: 10px 0;
            width: 50px;
            text-align: left;
        }

        .layui-input-block {
            margin-left: 50px;
        }
    </style>
</head>
<body>

<div class="layui-iframe">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-md12">
            <div class="layui-card" >
                <div class="layui-card-body layui-table-body layui-table-main" >
                    <div class="layui-card-body layui-form">
                        <div class="a-review">
                            <div class="r-action">

                                <div class="layui-form-item layui-form-text">
                                    <label class="layui-form-label">简介：</label>
                                    <div class="layui-input-block">
                                        <textarea class="layui-textarea">${manager.get(0).intro}</textarea>
                                    </div>
                                </div>

                                <div class="layui-form-item layui-form-text">
                                    <label class="layui-form-label">附件：</label>
                                    <div class="layui-input-block">
                                       <%-- <button type="button" onclick="xadmin.open('高管简介','./humanDesc.html','700','340', false)"
                                                class="layui-btn"><i class="layui-icon"></i> 上传相关附件</button>--%>
                                        ${manager.get(0).managerAccessory}
                                    </div>
                                </div>

                                <div class="layui-form-item" style="text-align: center;">
                                    <button type="reset" class="layui-btn layui-btn-danger">保存修改</button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
<script>
    layui.use(['laydate','form','upload'], function(){
        var laydate = layui.laydate;
        var  form = layui.form;
        var $ = layui.jquery;
        var upload = layui.upload;


        // 监听全选
        form.on('checkbox(checkall)', function(data){

            if(data.elem.checked){
                $('tbody input').prop('checked',true);
            }else{
                $('tbody input').prop('checked',false);
            }
            form.render('checkbox');
        });
//指定允许上传的文件类型
        upload.render({
            elem: '#test3'
            ,url: 'https://httpbin.org/post' //改成您自己的上传接口
            ,accept: 'file' //普通文件
            ,done: function(res){
                layer.msg('上传成功');
                console.log(res);
            }
        });
        //执行一个laydate实例
        laydate.render({
            elem: '#start' //指定元素
        });

        //执行一个laydate实例
        laydate.render({
            elem: '#end' //指定元素
        });


    });

</script>
</html>